How to make a dict point to and get to follow and get all possible path combinations